<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('每日股票筛选列表')" />
</head>
<body class="gray-bg">
     <div class="container-div">
         <div class="row">



             <div class="col-sm-12 select-table table-striped">
                 <table id="bootstrap-table"></table>
             </div>
         </div>
     </div>
     <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var editFlag = [[${@permission.hasPermi('system:screenstock:edit')}]];
        var removeFlag = [[${@permission.hasPermi('system:screenstock:remove')}]];
        var prefix = ctx + "system/screenstock";

        $(function() {
            var options = {
                url: prefix + "/list",
                createUrl: prefix + "/add",
                updateUrl: prefix + "/edit/{id}",
                removeUrl: prefix + "/remove",
                exportUrl: prefix + "/export",
                modalName: "每日股票筛选",
                columns: [{
                    checkbox: true
                },
                {
                    field: 'date',
                    title: '时间'
                },
                {
                    field: 'num',
                    title: '股票池'
                },
                {
                    title: '操作',
                    align: 'center',
                    formatter: function(value, row, index) {
                        var actions = [];
                        actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="/system/screenstock/index?id=' + row.id + '" ><i class="fa fa-edit"></i>查看</a> ');
                        return actions.join('');
                    }
                }]
            };
            $.table.init(options);
        });
    </script>
</body>
</html>